package com.weitu.accidentEvent.event.service;

import java.util.List;
import java.util.Map;

/**
 * Created by fanyuting on 2017/6/1 0001.
 */
public interface EventService {
    /**
     * 查询分页列表
     */
    public List<Map<String, Object>> queryListByParam(Map<String, Object> map);

    /**
     * 查询分页列表总数
     */
    public int queryListCountByParam(Map<String, Object> map);

    /**
     * 通过id查询数据
     *
     * @param id
     * @return
     */
    public Map<String, Object> queryInfoById(String id);

    /**
     * 新增
     */
    public boolean addInfo(Map<String, Object> map);

    /**
     * 更新
     */
    public boolean editInfo(Map<String, Object> map);

    /**
     * 删除
     */
    public boolean deleteInfo(String id);

    /**
     * 修改审批状态
     *
     * @param appState
     * @param id
     * @return
     */
    public boolean editAppState(String id, String appState);
}
